﻿Public Class cakeByTag
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub
    Protected Function getStars(ByVal cakeStar As Integer)
        Dim retval As String
        retval = ""
        For i = 1 To cakeStar
            retval = retval + "<img src='img/cupcake.png' />"
        Next
        Return retval
    End Function
  Protected Function getDifficulty(ByVal difficulty As Integer)
        Dim retval As String
        retval = ""
        For i = 1 To difficulty
            retval = retval + "<img src='img/difficulty.png' />"
        Next
        Return retval
    End Function


    Protected Sub ddl_tags_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddl_tags.SelectedIndexChanged
        Response.Redirect("cakeByTag.aspx?tag=" & ddl_tags.SelectedValue)

    End Sub


End Class